package jp.millibit.util
{

	public function sprintf(format:String, ... args):String
	{
		if (format === null)
		{
			return null;
		}

		var template:Template = cache[format];
		if (template === null)
		{
			cache[format] = template = new Template(format);
		}

		return template.eval(args);
	}
}

import jp.millibit.util.WeakCache;

var cache:WeakCache = new WeakCache();

class Template
{

	public function Template(format:String)
	{

	}

	public function eval(values:Array):String
	{
		return null;
	}
}